package com.taojiazheng.mapper;

import com.taojiazheng.entity.User;
import com.taojiazheng.so.user.UserSo;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserSo userSo);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserSo userSo);

    int updateByPrimaryKey(User record);

    User getUserByToken(String token);

    User getUserByPhone(String phone);

    User getUserByName(String name);
}